﻿using FileHelpers;
using System;

namespace ZillowApiClient.Data.Model
{
    [DelimitedRecord(",")]
    public class OutputRecord
    {
        public string address;
        public string city;
        public string state;

        [FieldConverter(ConverterKind.Double, ".")]
        public double Zestimate;

        [FieldConverter(ConverterKind.Int32)]
        public int NumberOfHits;

        public string LastUpdated;

        public string OtherHits;

        public string ProcessRunDate;

        public string ProcessRunTime;

        public string Exceptions;

        public OutputRecord()
        {
            ProcessRunDate = DateTime.Now.ToString("M-d-yyyy");
            ProcessRunTime = DateTime.Now.ToShortTimeString();
        }
    }
}